﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// UserRole
	/// </summary>
    [Serializable]
	public class UserRole
	{
		/// <summary>
		/// UserRoleID
        /// </summary>
        [FieldName("UserRoleID")]		
		public int UserRoleID
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserIdentity
        /// </summary>
        [FieldName("UserIdentity")]		
		public int UserIdentity
		{
			get;
			set;
		}
        
		/// <summary>
		/// RoleName
        /// </summary>
        [FieldName("RoleName")]		
		public string RoleName
		{
			get;
			set;
		}
        
		/// <summary>
		/// RoleLevel
        /// </summary>
        [FieldName("RoleLevel")]		
		public int RoleLevel
		{
			get;
			set;
		}
        
		/// <summary>
		/// ManageCity
        /// </summary>
        [FieldName("ManageCity")]		
		public string ManageCity
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegFullName
        /// </summary>
        [FieldName("RegFullName")]		
		public string RegFullName
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int EditUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditFullName
        /// </summary>
        [FieldName("EditFullName")]		
		public string EditFullName
		{
			get;
			set;
		}
        
        public UserRole Clone()
        {
            return (UserRole)this.MemberwiseClone();
        }
        
        public UserRole()
        {
            RoleName = string.Empty;
            ManageCity = string.Empty;
            RegDateTime = ConvertHelper.DefaultDate;
            RegFullName = string.Empty;
            EditDateTime = ConvertHelper.DefaultDate;
            EditFullName = string.Empty;
        }
	}
}
